'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/', controller.home.index);
  //登录接口
  router.post('/login', controller.home.login);  
  //获取所有用户（需要鉴权）
  router.post('/get_allUser', controller.home.getAllUser);
  router.post('/resign_user',controller.home.resignUser);
  //账单接口
  router.post('/bill/get_bill',controller.bill.getBillList);
  router.post('/bill/add_bill',controller.bill.addBill);
  router.post('/bill/delete_bill',controller.bill.deleteBill);
  //测试讷口
  router.get('/get_banner',controller.home.getBanner);
};
